package cn.tedu._05mvcboot02.common.statuscode;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS (2000,"操作成功"),
    OPERATION_FAILED(3000,"操作失败"),
    ILLEGAL_ERROR(8888,"出现Illegal异常"),
    THROWABLE_ERROR(6666,"出现Throwable异常");
    private Integer state;
    private String message;
}
